package com.atguigu.lease.model.base;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "检索条件基类")
public class BaseSearchDto {
    private Integer current = 1;
    private Integer size = 3;
    private Long provinceId;
    private Long cityId;
    private Long districtId;
    private Long apartmentId;

    public <T> Page<T> getPage(Class<T> clazz){
        return new Page<>(current,size);
    }
}
